const express = require('express');
const router = express.Router();
const jwtMiddleware = require('../middlewares/jwt');
const userController = require('../controllers/user');

/* 登录 */
router.post('/signin', userController.signin);
// 查询用户
router.get('/info', jwtMiddleware, userController.getUserInfo);
/* 注册 */
router.post('/signup', userController.signup);
// 退出登录
router.post('/signout', userController.signout);

module.exports = router;
